package org.bluedream.core.module.sys.config.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.bluedream.core.module.sys.config.entity.Cert;

public interface CertDao extends BaseMapper<Cert> {
    @Select("select * from sys_digital_certificate where rownum = 1")
    Cert getOnlyOne();

    @Delete("delete from sys_digital_certificate")
    void removeAll();

}
